package com.brush.pig.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.brush.pig.domain.IotGoods;
import com.brush.pig.domain.req.Goods.LotGoodsQueryReq;
import com.brush.pig.domain.resp.Goods.LotGoodsResp;
import com.brush.pig.service.IotGoodsService;
import com.brush.pig.mapper.IotGoodsMapper;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

/**
* @author ckq
* @description 针对表【iot_goods(物资)】的数据库操作Service实现
* @createDate 2024-11-13 09:03:42
*/
@Service
public class IotGoodsServiceImpl extends ServiceImpl<IotGoodsMapper, IotGoods>
    implements IotGoodsService{

    @Override
    public PageInfo<LotGoodsResp> paginationQuery(LotGoodsQueryReq req) {
        return PageHelper.startPage(req.getPageNum(),req.getPageSize()).doSelectPageInfo(()->{
            this.baseMapper.paginationQuery(req);
        });
    }
}




